package com.chunuo.eduservice.openfeign;

import com.chunuo.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-07-30 12:29
 */
@FeignClient(value = "service-order")
@Component
public interface OrderOpenFeign {

    @GetMapping("/order/order/getIsBuy/{courseId}/{userId}")
    public R getIsBuy(@PathVariable("courseId")String courseId,@PathVariable("userId")String userId);

}
